<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <button @click="count = count + Math.random()">随机数</button>
        <p>生成的随机数是：{{count}}</p>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                count:0
                }
        })
    </script>
</body>
</html>